home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr31 / split60f.zip / SPLIT60F.DOC < prev    next >
Text File  |  1993-05-23  |  14KB  |  279 lines

  1. SPLIT.EXE version 6.0f                                  (May, 1993)
  2. Command
  3.  
  4. Purpose: SPLIT divides a file, at specified points, into smaller files and
  5.          can re-unite them back into the original file, if needed. Files may
  6.          be processed as either binary or text files. When text files are
  7.          split according to the number of lines in each new file, lines are
  8.          truncated at 256 characters. Source file size is displayed in
  9.          bytes. Output files all have the same basename and a series of
  10.          increasing numeric file extensions beginning with ".001".
  11.  
  12.          Files may be re-united with crc check using the SPLIT/u option.
  13.          (See "Unsplit" instructions below).
  14. ______________________________________________________________
  15. Splitting Files: Command line from batch file or menu-driven.
  16. --------------------------------------------------------------
  17.          Input and output filenames and options may be entered on the
  18.          command line. Bad filenames result in a prompt for a new filename.
  19.  
  20. Format:  SPLIT [fnm1] [fnm2] [opt] [num] [y/n]
  21.  
  22.          "fnm1" is the name of input file to be split, including the
  23.          extension and pathname, where needed.
  24.  
  25.          "fnm2" is the output file basename (no extension), including
  26.          pathname, where needed.
  27.  
  28.          "opt" is the split option.  Choices are: (F)iles, (B)ytes,
  29.          (L)ines, or (M)anual.
  30.  
  31.          "num" is the number of files, bytes, or lines in each output file.
  32.  
  33.          "y/n" is yes/no option to pause for new disk with each output file.
  34.  
  35.  
  36. Example: To split BIG.FIL into three equal files named LITTLE.001,
  37.          LITTLE.002, LITTLE.003, and no pause for new disk after each
  38.          new outuput file, you would type the following:
  39.  
  40.          SPLIT big.fil little f 3 n
  41.  
  42. Simply entering "SPLIT" on the command line results in prompts for
  43. the filenames and options.  The "split by" options on the menu are:
  44.  
  45.      F: Specify the number of (F)iles, equal size, to split source into,
  46.      B: Specify the number of (B)ytes in each new output file, or
  47.      L: Specify the number of (L)ines of text in each new file.
  48.  
  49. A blank line entered at "split by" option prompt results in "F" as the
  50. default type of file splitting.
  51.  
  52. The following option is NOT listed on the menu:
  53.  
  54.      M: Copy blocks of bytes (M)anually from source to output file.
  55.  
  56. Although not listed in the menu, manual file splitting is available to
  57. ADVANCED users by choosing option "M" at the "split by" prompt or placing
  58. "m" in the command line as described above.  Manual splitting copies a
  59. specific block of bytes from within the source file into the output file.
  60. Starting and ending bytes are entered for the block of source file bytes
  61. to be copied to the output file. Values from zero to source file size are
  62. entered as the first and last bytes of each new block to be copied to an
  63. output file. If the second byte number is zero or is lower than the first
  64. byte, the program aborts. Bytes up to and including the second byte number
  65. are copied to the new file.  The numeric output file extension is also
  66. entered manually.
  67.  
  68. After each group of bytes is copied, a new extension number, starting point,
  69. and ending point are requested for another output file.  A new file is
  70. created and the next group of bytes is copied to it.  This repeats until the
  71. end of the source file or the program is ended by entry of an ending byte
  72. value less than the starting byte.  A blank line entered for any requested
  73. value results in the default for that value. Default for file extension is
  74. the previous extension number plus one. Default for the starting byte is the
  75. next byte after the last file split left off. Default for the second byte
  76. number is the last byte in the source file. Be careful!  Manual file
  77. splitting is for ADVANCED users.
  78.  
  79. _____________________________________________________________________________
  80. Unsplit files: SPLIT.EXE with the "/u" switch re-unites binary or text files.
  81. -----------------------------------------------------------------------------
  82. Format:  SPLIT/u fnm [outfil] [/x]
  83.  
  84.          "Fnm" is the input file basename (no extension), including
  85.          pathname, where needed.  If this is the only filename entered,
  86.          the resulting re-united file will be named "Fnm.RE$".
  87.  
  88.          "Outfil" is the output filename or basename.  If no extension is
  89.          given, extension ".RE$" is provided to make output filename
  90.          "Outfil.RE$". If a fully qualified filename ("Outfil.ext") is
  91.          given, the re-united file keeps that name. (See examples).
  92.  
  93.          "/X" given as the last command parameter results in deletion
  94.          of the input files as the output file is being re-constructed.
  95.  
  96.     The unsplit function works from the command line only, not menu-driven.
  97.     Re-unites the entire series fnm.001 thru fnm.### into a single file.
  98.     if "SPLIT/u fnm" is entered, the default output file is "fnm.RE$"
  99.  
  100.     If original file CRC is stored in control file, SPLIT/u verifies that
  101.     re-united file has the same CRC as original. For SPLIT 6.0e and later,
  102.     re-united filedate = original filedate if control file is present.
  103.  
  104. Examples:
  105.                                                                                 
  106.     SPLIT/u Infile            -> Infile.RE$ created from series
  107.     SPLIT/u Infile /X         -> Infile.RE$ & infiles deleted
  108.     SPLIT/u Infile Outfil.txt -> Outfil.txt created from series
  109.     SPLIT/u Infile Outfil /X  -> Outfil.RE$ & infiles deleted
  110.  
  111.    (Run SPLIT/u without command parameters for examples/instructions)
  112.  
  113.  
  114. *-* OR *-*
  115.  
  116. Use DOS COPY:
  117. -------------
  118.    1) For text files, just use the copy command:
  119.  
  120.        COPY fnm2.* fnm1.all
  121.              or
  122.        COPY fnm2.001 + fnm2.002 + fnm2.003 fnm1.all
  123.  
  124.    2) For binary files use the /B switch:
  125.  
  126.        COPY/b fnm2.* fnm1.all
  127.              or
  128.        COPY/b fnm2.001 + fnm2.002 + fnm2.003 fnm1.all
  129.  
  130.    This concatenates the pieces back into a single file.  Unlike with
  131.    SPLIT/u, no comparison to the original file crc is made.  Check your
  132.    DOS manual for file concatenation conventions.
  133.  
  134.  
  135. Installing (setup) SPLIT.EXE:
  136. -----------------------------
  137. Format:  SPLIT /s
  138.  
  139. When SPLIT is first run, you are asked whether you want to install the RAM
  140. swap to disk/EMS during shell to dos and whether you want crc file integrity
  141. check for split/unite functions.  To change setup, type SPLIT /s.
  142.  
  143. RAM swapping: If you have limited free conventional RAM, the TRUE option for
  144. swapping RAM to disk/EMS on shell might be best. If your EMS or disk space
  145. is limited or a program conflict exists, the FALSE option might be best.
  146.  
  147. CRC Checking: With slower computers (8088,XT), crc verification may slow
  148. splitting/uniting significantly and you may wish to choose 'F' (FALSE) for
  149. CRC file checking.  For 8-10mhz 80286/AT and faster processors, crc checking
  150. causes no significant slowing and 'T' or 'X' are the best crc options.
  151.  
  152. Options: 'T' = New Crc32 check (Zmodem, PKZIP, more secure method).
  153.          'X' = Crc-CCITT check (Xmodem, older SPLIT commpatibility).
  154.          'F' = Disables any CRC checking.
  155.  
  156. After the program is installed, you may change RAM swap and CRC options
  157. at any time by running SPLIT in "SETUP" mode. (Format:  SPLIT /s).
  158.  
  159.  
  160. Uses for SPLIT.EXE:
  161. -------------------
  162.   o Backing up large files from a hard disk to floppies or from
  163.     high-capacity to low-capacity disks.
  164.   o Making smaller text files out of larger ones for use with limited
  165.     capacity editors like Sidekick's notepad.
  166.   o Split a specific block of bytes out from the middle of a binary file
  167.     (useful in patching some kinds of executable and archive files).
  168.   o Files are split where you want and are easily put back together.
  169.  
  170. Features of SPLIT.EXE :
  171. -----------------------
  172.   o Disk Span: If destination disk is full, SPLIT adjusts size of current
  173.     output file to number of bytes remaining on destination disk and
  174.     prompts for new disk in the output drive.
  175.  
  176.   o SHELL to DOS during binary split operation to change directory, format
  177.     disk, etc. In v 5.x, Shell to Dos can swap program in RAM to disk
  178.     (file "$PLIT.$$$" in root directory contains RAM image) or to EMS
  179.     memory.  Swapping is toggled with "SPLIT /s" setup option.  For DOS
  180.     shell, type "exit" at filename prompt or select "<Go To DOS>" from
  181.     light-bar file selector.  Then type "EXIT" at the DOS command line to
  182.     return to SPLIT from DOS. (SHELL is disabled for TEXT processing).
  183.  
  184.   o 10-03-89: v4.9x - Manual Split, binary files. Binary files incremented
  185.     in bytes, text files incremented in lines. Self-test at startup detects
  186.     damaged or altered program.
  187.  
  188.   o 01-01-91: v5.00 - Point-and-shoot file selector if input file not found.
  189.     Wild card filenames ok. Scroll limit = 512.  LZEXE compression.
  190.  
  191.   o 01-15-91: v 5.11 - UNITE.EXE no longer needed.  SPLIT.EXE re-unites
  192.     files with /u parameter. Control file created with last file split tells
  193.     SPLIT how many files there were. Type "SPLIT/u" for usage instructions.
  194.  
  195.   o 02-18-91: v 5.13 - CRC of original binary file is saved in control
  196.     file and compared to crc of re-united file. If no stored crc or no
  197.     control file, crc comparison is not attempted.
  198.  
  199.   o 02-25-91: v 5.14 - Program now self-installs. CRC and RAM swap toggle
  200.     options prompted from initial run.  Run "SPLIT /s" to change setup
  201.     toggles later.
  202.  
  203.   o 08-25-91: v 5.16 - CRC options expanded:  Crc32 or Xmodem CRC
  204.     (backwardly compatible to v5.13).  Crc32 is more secure crc used by
  205.     PKZIP and ZMODEM.  Faster public domain CRC assembler code.
  206.  
  207.   o 09-02-91: v 5.17 - Sort file selector directory.
  208.  
  209.   o 11-24-91: v 5.18 - Now allows /s and /u options from opening screen.
  210.  
  211.   o 12-07-91: v 5.19 - /H or /? command parameter gives help screen.
  212.     Re-unite progress displays in opening screen window. If first fragment
  213.     (fnm2.001) of re-uniting file is in the same directory as the control
  214.     file, SPLIT/u uses the same CRC algorithm as for original file split.
  215.  
  216.   o 04-02-92: v 5.21 - Shell image file name fully qualified. Avoids image
  217.     files left in root of drive on exit back to SPLIT from a different
  218.     drive.  Filename search fine tuned on dirname, *.*, and shell return.
  219.  
  220.   o 08-15-92: v 6.0c - Date display on startup, obsolete message in two
  221.     years.  "SPLIT.TIP" has usage tips & shortcuts. Shell problems fixed.
  222.     Smaller program, changed sound effects.
  223.  
  224.   o 04-10-93: v6.0d - Reset program date/time to version date/time with
  225.     each run.  New HELP screen.  Fix output file extension increment.
  226.  
  227.   o 05-17-93: v6.0e - Rebuilt file date = original file date. Original
  228.     filename, date, path, and split version now stored in control file.
  229.  
  230.   o 05-23-93: v6.0f - Re-unite module: New help screen. Better exit
  231.     display. Warning & option to terminate if potential outfile loss
  232.     with removable output disks (drive A: or B:). Control file name
  233.     extension now has regular ascii characters (works with old ctl).
  234.  
  235.  
  236. SPLIT.EXE update history:
  237. -----------------------------------------------------------------------
  238. SPLIT60f *  05-23-93 -- New re-unite help & ctl name, safer output.
  239. SPLIT60e *  05-17-93 -- Rebuilt date=source date.  More control data.
  240. SPLIT60d    04-10-93 -- Prog date=vers date, new help, fix increment.
  241. SPLIT60c *  08-15-92 -- Far calls on SHELL, tips file, sound changes.
  242. SPLIT60b *  07-21-92 -- TP6 compiler, date display, obsolete message.
  243. SPLIT521 *  04-02-92 -- Fix filename check, delete shell image file.
  244. SPLIT520 *  03-18-92 -- Fix setup, append data ONLY to SPLIT program.
  245. SPLIT519 *  12-07-91 -- Help display; SPLIT/u now in main window.
  246. SPLIT517 *  09-02-91 -- Sorted file selector shows first 512 files.
  247. SPLIT516 *  09-01-91 -- Fast CRC32 or Old CRC check; Sorted directory.
  248. SPLIT514 *  02-24-91 -- Self-configure toggles on/off CRC & RAM swap.
  249. SPLIT513 *  02-18-91 -- Check crc-ccitt of re-united vs original file.
  250. SPLIT512    02-17-91 -- RAM swap to root dir, $PLIT.$$$ attrib = norm.
  251. SPLIT511 *  01-15-91 -- Re-unite function now included in SPLIT.EXE.
  252. SPLIT499    12-01-90 -- Light bar file selector, swap RAM to EMS/DISK.
  253. SPLIT49Z *  07-19-90 -- LZEXE compression added, self-check retained.
  254. SPLIT491    06-27-89 -- Manual splitting returned (dumped in 46m).
  255. SPLIT480 *  01-15-89 -- Add directory, dos shell (1st public release).
  256. SPLIT47     01-30-88 -- Clean up input, change records to bytes.
  257. SPLIT46M    01-29-88 -- First msdos rewrite, similar to cp/m version.
  258. -----------------------------------------------------------------------
  259. *  = version released to public.
  260. -----------------------------------------------------------------------
  261. Inspiration for SPLIT was "SPLITTER", a CP/M program by Mike Nault.
  262.  
  263. Thanks and credit to the following:
  264.  
  265.   o  Steve Ogden for the opening window routines.
  266.   o  Jim Luckas for parts of the "point-and-shoot" selector.
  267.   o  TurboPower for the ExecSwap option when shelling to DOS.
  268.  
  269. With the exception of ExecSwap routine, source code was derived either
  270. from public domain sources or written originally for this program.
  271.  
  272. ** SPLIT.EXE has NO warranty, expressed or implied. The person using this
  273.    software bears all risk as to unwanted or unexpected effects on data or
  274.    equipment and as to the quality and performance of the software.
  275.  
  276.  
  277.  - M. Dingacci, 5/23/93 -
  278.  
  279.